/*************************************************
Author: will
Date: 12/5/2012
Description:
Notes: 
*************************************************/

#ifndef __cmdchat_h__
#define __cmdchat_h__

#include "CTAsyncCmd.h"
#include "PBMsgHead.pb.h"
#include "../mainctrl.h"
#include "MsgChat.pb.h"

class CCmdChat : public CTLib::CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    unsigned int uiGID;

    MsgReqChat stReq;
    MsgAnsChat stAns;

    bool bHasCheckMsg; 

private:
    int CheckMsg(char* sMsg, int iMsgLen);
}; 


#endif // __cmdchat_h__

